package com.itheima.user.service;

import com.itheima.user.mapper.UserMapper;
import com.itheima.user.pojo.User;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 29143
 */
@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public User findUserById(Long id){
        User user=userMapper.findUserById(id);
        return user;
    }

}
